package lab02.test28;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        double raduis;
        double area=0;
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个double型的数据：");
        try {
            raduis=scanner.nextDouble();
            //求面积
            area=3.14*raduis*raduis;
        }catch (InputMismatchException e){
            System.out.println("数据类型不匹配！！！");

        }finally {

        }
        System.out.println("面积为："+area);

        }

    }

